@@ -29,8 +29,7 @@ after_fork do |server, worker| |
||
| 29 | 29 |
# If you are using Redis but not Resque, change this |
| 30 | 30 |
if defined?(Resque) |
| 31 | 31 |
uri = URI.parse(ENV["REDISTOGO_URL"]) |
| 32 |
- redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password) |
|
| 33 |
- Resque.redis = redis |
|
| 32 |
+ Resque.redis = uri |
|
| 34 | 33 |
Rails.logger.info('Connected to Redis')
|
| 35 | 34 |
end |
| 36 | 35 |
end |